using System;
using System.Collections.Generic;
using System.Web.Mvc;
using AspNetMvc.Services.Events.Interfaces;

namespace AspNetMvc.Services.Events
{
   internal class EventMinutesListGenerator : IEventMinutesListGenerator
   {
      public List<SelectListItem> GetMinutesList()
      {
            var minutesList = new List<SelectListItem>();

            for (int i = 0; i <= 55; i += 5)
               minutesList.Add(new SelectListItem { Value = i.ToString(), Text = String.Format("{0:00}", i) });

            return minutesList;
      }
   }
}